import BaseUIMediator from "../../UIExt/FGui/BaseUIMediator";
import UI_FunctionTest from "../../ui/Main/UI_FunctionTest";
import { UI_MainMediator } from "./UI_MainMediator";
export default class UI_FunctionTestMediator extends BaseUIMediator<UI_FunctionTest> {

    private static _instance: UI_FunctionTestMediator;
    public static get instance(): UI_FunctionTestMediator {
        if (this._instance == null) {
            this._instance = new UI_FunctionTestMediator();
            this._instance._classDefine = UI_FunctionTest;
        }
        return this._instance;
    }

    _OnShow() {
        super._OnShow();
        // your code
        this.ui.m_btn_back.onClick(this, this._OnClickClose);
    }

    private _OnClickClose() {
        this.Hide();
        UI_MainMediator.instance.Show();
    }

}